<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="jquery-3.1.0.min.js"></script>
    <script src="jquery-ui-1.12.0/jquery-ui.js"></script>
    <link rel="stylesheet" href="jquery-ui-1.12.0/jquery-ui.css"/>

    <style type="text/css">
        .ui-selected{
            background-color: #003eff;
        }
    </style>
</head>
<body>
    <strong>世界上最美丽的人是？</strong>
    <ul id="select">
        <li id="right">a.you</li>
        <li>b.me</li>
        <li>c.he</li>
    </ul>
    <a href="#" id="btn">提交</a>

    <script>
        $(document).ready(function(){
            $("#btn").button();
            $("#select").selectable();
            $("#btn").click(function(){
                if($("#right").hasClass("ui-selected")){
                    alert("恭喜你，答对了！")
                }
            })
        });
    </script>
</body>
</html>

